Request headers

Only registered user can perform this action
  Authentication - string - required
    Example of Authentication header : "Bearer TOKEN_FETCHED_FROM_SERVER_DURING_REGISTRATION"

Request body example

{
  quiz: {
    title: "Quiz"
  }
}

Success response body

{
  "id": 1,
  "title": "Quiz"
}

Params

Param name Description
course_id
required

Validations:

  • Must be a Integer

section_id
required

Validations:

  • Must be a Integer

id
required

Validations:

  • Must be a Integer

quiz
required

Validations:

  • Must be a Hash

quiz[title]
required

Validations:

  • Must be a String